﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit_password.aspx.cs" Inherits="Com.CMS263.Web.manage.edit_password" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <link href="style/main.css" rel="stylesheet" type="text/css" />
    <link href="common/validator.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript">
    function  check()
    {
        var uid = document.getElementById("txtOldUserPass").value;
        if(uid.length==0)
        {
            alert("请输入旧密码");
            return false;
        }
        var pwd = document.getElementById("txtUserPass").value;
        if(pwd.length==0)
        {
            alert("请输入密码");
            return false;
        }
        var Repwd = document.getElementById("txtConfirmPass").value;
        if(Repwd.length==0)
        {
            alert("请输入重复密码");
            return false;
        }
        if(Repwd!=pwd)
        {
            alert("重复密码跟密码不一致");
            return false;
        }
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_1">
                <tr>
                    <td height="23" colspan="6" class="table_2">
                        修改密码</td>
                </tr>
                <tr>
                    <td colspan="6">
                        <table width="100%" border="0" cellpadding="5" cellspacing="1">
                            <tr>
                                <td width="110">
                                    用 户 名：</td>
                                <td width="805">
                                    <asp:Label ID="lblUserId" runat="server"></asp:Label></td>
                            </tr>
                            <tr>
                                <td>
                                    旧 密 码：</td>
                                <td>
                                    <asp:TextBox ID="txtOldUserPass" TextMode="Password" runat="server" class="broder_1"
                                        size="20" MaxLength="20"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                    新 密 码：</td>
                                <td>
                                    <asp:TextBox ID="txtUserPass" TextMode="Password" runat="server" class="broder_1"
                                        size="20" MaxLength="20"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                    确认密码：</td>
                                <td>
                                    <asp:TextBox ID="txtConfirmPass" TextMode="Password" runat="server" class="broder_1"
                                        size="20" MaxLength="20"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td colspan="2" class="table_3">
                                    <asp:Button ID="btnSave" runat="server" Text="确定" class="button_1" OnClick="btnSave_Click" />
                                    <asp:Button ID="btnReset" runat="server" Text="取消" class="button_1" OnClick="btnReset_Click" />&nbsp;
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
    </div>
    </form>
</body>
</html>
